package com.hbpa.form;

import java.io.FileNotFoundException;
import java.io.IOException;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.upload.FormFile;
 

public class StudentPicUploadForm extends ActionForm {

	private String xh;
	private FormFile file;
	
	public FormFile getFile() {
		return file;
	}
	public void setFile(FormFile file) {
		this.file = file;
	}
	
	public String getXh() {
		return xh;
	}
	public void setXh(String xh) {
		this.xh = xh;
	}
	
	
	public String getFileName()
	{
		return this.file.getFileName();
	}
	
	public int getFileSize()
	{
		return this.file.getFileSize();
	}
	
	public byte[] getFileData() throws Exception
	{
		return this.file.getFileData();
	}
	@Override
	public void reset(ActionMapping arg0, HttpServletRequest arg1) {
		this.file = null;
		this.xh = null;
	}
	
	
}
